package com.dayuanit.dy16.ebook.ebookweb.service;

import com.dayuanit.dy16.ebook.ebookweb.dto.AddressDTO;
import com.dayuanit.dy16.ebook.ebookweb.dto.CartDTO;
import com.dayuanit.dy16.ebook.ebookweb.dto.OrderDTO;
import com.dayuanit.dy16.ebook.ebookweb.entity.Area;
import com.dayuanit.dy16.ebook.ebookweb.entity.Order;
import com.dayuanit.dy16.ebook.ebookweb.vo.AddressRequestVO;

import java.util.List;
import java.util.Map;

public interface IOrderService {

    List<AddressDTO> loadAddress(long userId);

    List<Area> loadArea(int level, int parentId);

    void saveAddress(AddressRequestVO addressRequestVO, long userId);

    List<CartDTO> loadCartInfo(long userId);

    String createOrder(long userId, long addressId, int payChannel);

    void alipayNotify(Map<String, String> notifyParamter);

//    void processCancelOrder(Order order);
    void processCancelOrder(Long orderId);

    void queryAliOrder(Order order);

    List<OrderDTO> loadOrder(long userId, Integer status);

    List<OrderDTO> loadOrder2(long userId, Integer status);

    List<OrderDTO> loadOrder3(long userId, Integer status);

}
